<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Client</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Client</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/geoff/workspace/svn/trunk/DreamPark/modele/Client.py">/home/geoff/workspace/svn/trunk/DreamPark/modele/Client.py</a></font></td></tr></table>
    <p><tt>Created&nbsp;on&nbsp;5&nbsp;dec.&nbsp;2014<br>
&nbsp;<br>
@author:&nbsp;Damien&nbsp;Torond&nbsp;et&nbsp;Geoffrey&nbsp;Sentost<br>
Module&nbsp;<a href="#Client">Client</a></tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Client.html#Client">Client</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Client">class <strong>Client</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Classe&nbsp;<a href="#Client">Client</a>&nbsp;qui&nbsp;modelise&nbsp;un&nbsp;client&nbsp;lambda,&nbsp;avec&nbsp;ses&nbsp;donnees&nbsp;personnelles,&nbsp;la&nbsp;frequence&nbsp;<br>
de&nbsp;venu&nbsp;au&nbsp;parking&nbsp;ainsi&nbsp;que&nbsp;son&nbsp;abonnement&nbsp;si&nbsp;il&nbsp;en&nbsp;a&nbsp;un.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Client-__init__"><strong>__init__</strong></a>(self, voiture, nom, prenom, adresse, mail, tel, nbFreq, id, abonnement=None)</dt><dd><tt>Attributs&nbsp;:<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;id&nbsp;de&nbsp;type&nbsp;int.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;nom&nbsp;de&nbsp;type&nbsp;string,&nbsp;nom&nbsp;du&nbsp;client.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;prenom&nbsp;de&nbsp;type&nbsp;string,&nbsp;prenom&nbsp;du&nbsp;client.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;adresse&nbsp;de&nbsp;type&nbsp;string,&nbsp;adresse&nbsp;du&nbsp;client.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;mail&nbsp;de&nbsp;type&nbsp;string,&nbsp;adresse&nbsp;mail&nbsp;du&nbsp;client.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;tel&nbsp;de&nbsp;type&nbsp;string,&nbsp;numero&nbsp;de&nbsp;telephone&nbsp;du&nbsp;client.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;nbFrequentations&nbsp;de&nbsp;type&nbsp;int,&nbsp;le&nbsp;nombre&nbsp;de&nbsp;fois&nbsp;ou&nbsp;le&nbsp;client&nbsp;va&nbsp;au&nbsp;parking.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;possederTicket&nbsp;de&nbsp;type&nbsp;bool&nbsp;qui&nbsp;verifie&nbsp;si&nbsp;le&nbsp;client&nbsp;a&nbsp;un&nbsp;ticket&nbsp;(True).<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;voitureClient&nbsp;instance&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture.</tt></dd></dl>

<dl><dt><a name="Client-getAbonnement"><strong>getAbonnement</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;abonnement&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getAdresse"><strong>getAdresse</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;adresse&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getDevenirSuperAbo"><strong>getDevenirSuperAbo</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;Verifie&nbsp;si&nbsp;le&nbsp;client&nbsp;est&nbsp;superAbonne&nbsp;pour&nbsp;lui&nbsp;donner&nbsp;une&nbsp;place&nbsp;attribue&nbsp;a&nbsp;la&nbsp;<br>
voiture.</tt></dd></dl>

<dl><dt><a name="Client-getEstAbonne"><strong>getEstAbonne</strong></a>(self)</dt><dd><tt>on&nbsp;retourne&nbsp;True&nbsp;si&nbsp;le&nbsp;client&nbsp;a&nbsp;un&nbsp;abonnement,&nbsp;False&nbsp;sinon.</tt></dd></dl>

<dl><dt><a name="Client-getEstSuperAbonne"><strong>getEstSuperAbonne</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;on&nbsp;retourne&nbsp;True&nbsp;si&nbsp;le&nbsp;client&nbsp;a&nbsp;un&nbsp;abonnement&nbsp;et&nbsp;qu'il&nbsp;est&nbsp;superAbonne,&nbsp;False&nbsp;sinon.</tt></dd></dl>

<dl><dt><a name="Client-getId"><strong>getId</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;id&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getMail"><strong>getMail</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;mail&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getNbFrequentations"><strong>getNbFrequentations</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;nbFrequentations&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getNom"><strong>getNom</strong></a>(self)</dt><dd><tt>Mehode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;nom&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getPrenom"><strong>getPrenom</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;prenom&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getTel"><strong>getTel</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;tel&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-getVoiture"><strong>getVoiture</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;voitureClient&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-insererCarte"><strong>insererCarte</strong></a>(self, bdd)</dt><dd><tt>Methode&nbsp;:&nbsp;permet&nbsp;d'inserer&nbsp;la&nbsp;carte&nbsp;d'abonne&nbsp;et&nbsp;de&nbsp;la&nbsp;verifier&nbsp;dans&nbsp;la&nbsp;base&nbsp;de&nbsp;<br>
donnees.</tt></dd></dl>

<dl><dt><a name="Client-insererTicket"><strong>insererTicket</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;permet&nbsp;d'inserer&nbsp;un&nbsp;ticket&nbsp;et&nbsp;ainsi&nbsp;de&nbsp;passer&nbsp;possederTicket()&nbsp;a&nbsp;False.</tt></dd></dl>

<dl><dt><a name="Client-recevoirTicket"><strong>recevoirTicket</strong></a>(self, bdd=None)</dt><dd><tt>Methode&nbsp;:&nbsp;elle&nbsp;attend&nbsp;une&nbsp;instance&nbsp;de&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees&nbsp;en&nbsp;parametre.<br>
Un&nbsp;ticket&nbsp;est&nbsp;alors&nbsp;donne&nbsp;avec&nbsp;puis&nbsp;on&nbsp;incremente&nbsp;le&nbsp;nombre&nbsp;de&nbsp;frequentations&nbsp;dans&nbsp;l'attribut&nbsp;<br>
et&nbsp;dans&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees.</tt></dd></dl>

<dl><dt><a name="Client-setAbonnement"><strong>setAbonnement</strong></a>(self, abo)</dt><dd><tt>Methode&nbsp;:&nbsp;modificateur&nbsp;de&nbsp;l'attribut&nbsp;abonnement&nbsp;qui&nbsp;mofifie&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Client-setDevenirSuperAbo"><strong>setDevenirSuperAbo</strong></a>(self, bool)</dt><dd><tt>Methode&nbsp;:&nbsp;donne&nbsp;une&nbsp;place&nbsp;attribuee&nbsp;a&nbsp;un&nbsp;superAbonne&nbsp;pour&nbsp;une&nbsp;voiture&nbsp;donne,&nbsp;avec&nbsp;un<br>
parametre&nbsp;bool&nbsp;passer&nbsp;en&nbsp;parametre&nbsp;de&nbsp;la&nbsp;fonction.</tt></dd></dl>

<dl><dt><a name="Client-setId"><strong>setId</strong></a>(self, id)</dt><dd><tt>Methode&nbsp;:&nbsp;modificateur&nbsp;de&nbsp;l'attribut&nbsp;id&nbsp;qui&nbsp;mofifie&nbsp;celui-ci.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>